/*
 * @Author: your name
 * @Date: 2021-05-03 16:10:10
 * @LastEditTime: 2021-05-03 18:37:16
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \learn-fe\learn-small-program\components\suspend-menu\suspend-menu.js
 */
Component({
  data: {
    isExpand: false,
  },
  methods: {
    // 麻了，小程序里用箭头函数拿不到this
    onExpand: function () {
      this.setData({ isExpand: !this.data.isExpand });
    },
    gotoOrderPage: function () {
      wx.navigateTo({
        // 跳转的时候要按照相对路径对上
        url: `../../pages/orderPage/orderPage`,
      });
    },
  },
});
